package com.sinosoft.tcmemr.manager;

import java.util.Date;
import java.util.List;

import com.sinosoft.tcmemr.entity.PatientEntity;

public interface PatientManager {
	/**
     * 增加病人信息
     * @param patient
     * @return
     */
    public boolean insertSelective(PatientEntity patient);
    
    /**
     * 查询病人信息
     * @param id
     * @return
     */
    public PatientEntity selectByPrimaryKey(Integer id);

    /**
     * 根据条件病人病历ID查询
     * @param ehrId
     * @return
     */
    public List<PatientEntity> selectBySearchEHRID(String ehrId);
    
    /**
     * 根据身份证查询
     * @param identifyCardid
     * @return
     */
    public List<PatientEntity> selectBySearchByIdentifyCard(String identifyCardid);
    /**
     * 根据条件查询
     * @param name
     * @param gender
     * @param birthday
     * @return
     */
    public List<PatientEntity> selectBySearchCon(String name,String gender,Date birthday);
    
    
}
